/*
 * godspeaker.cpp for GodSpeaker
 *
 *
 * Author: healich@gmail.com
 */

#include "godspeaker.h"
#include "speaker.h"
#include "listener.h"


//#include <qtopia/resource.h>

#include <qtabwidget.h>
#include <qlayout.h>
#include <qscrollview.h>

GodSpeaker::GodSpeaker( QWidget *parent, const char *name, WFlags f )
    : QWidget( parent, name, f )
{
    //setIcon( Resource::loadPixmap( "GodSpeaker" ) );
    setCaption( tr("God Speaker") );

    QVBoxLayout *lay = new QVBoxLayout( this );
    QTabWidget *tab = new QTabWidget( this );
    lay->addWidget( tab );
    tab->addTab( new Speaker( tab ), tr("Speak") );
    tab->addTab( new Listener( tab ), tr("Listen") );

    //tab->addTab( new MemoryInfo( tab ), tr("Memory") );

/*
#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
    QScrollView *sv = new QScrollView(this);
    sv->setHScrollBarMode(QScrollView::AlwaysOff);
    sv->setResizePolicy(QScrollView::AutoOneFit);
    sv->setFrameStyle(QFrame::NoFrame);

    sv->addChild(new StorageInfoView(tab));
    tab->addTab(sv, tr("Storage"));
#endif
*/

    resize( 320, 240 );
}
